package app.entity;

import java.util.ArrayList;
import java.util.List;

public class MeterDataBean {
	// 数据类型
	private String t = "";
	// 用于保存月份
	List<String> time = new ArrayList<>();
	// 用于保存月消耗总电量
	List<String> meters = new ArrayList<>();
	
	public MeterDataBean(String t) {
		this.t=t;
	}
	
	public List<String> getTime() {
		return time;
	}

	public void setTime(List<String> time) {
		// 进行逆序加入
		for (int i = time.size() - 1; i >= 0; i--) {
			this.time.add(time.get(i));
		}
	}

	public List<String> getMeters() {
		return meters;
	}

	public void setMeters(List<String> meters) {
		// 进行逆序加入
		for (int i = meters.size() - 1; i >= 0; i--) {
			this.meters.add(meters.get(i));
		}
	}

	public String getT() {
		return t;
	}
}
